package com.film.exception;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 我自己的异常
 * @author Administrator
 *
 */
public class MyException extends RuntimeException {

	private static Logger logger=LoggerFactory.getLogger(MyException.class);
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public MyException() {
		super();
		logger.error("出现异常");
	}

	public MyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
		logger.error(message);
	}

	public MyException(String message, Throwable cause) {
		super(message, cause);
		logger.error(message);
	}

	public MyException(String message) {
		super(message);
		logger.error(message);
	}

	public MyException(Throwable cause) {
		super(cause);
		logger.error(cause.getMessage());
	}

	
}
